
package com.bear.cmcc.NetTestHTTP.constant;

public interface FtpConstant {

    int FTP_DOWN_FILE_SUCCESS = 226;

    int FTP_DOWN_FILE_CACHE_SIZE = 1024 * 20;
    
    int FTP_CONNECT_TIME_OUT_20 = 20000;

    int FTP_CONNECT_TIME_OUT = 60000;

    int FTP_DATA_TIME_OUT = 120000;

    int FTP_Default_TIME_OUT = 60000;
    
    int NET_TEST_FTP__DEFAULT_SLEEP = 10000;//测试时默认线程休眠时间

    String FTP_CHARSET = "UTF-8";

    interface FtpFileNames {
        // 正常版本配置
    	static String versionFileName = "VERSION";
    	
        static String versionFileName_FJ = "VERSION-FJ";

        static String score2GFileName = "SCORE-2G";

        static String scoreTDFileName = "SCORE-TD";

        static String scoreWLANFileName = "SCORE-WLAN";

        static String scoreLTEFileName = "SCORE-LTE";

        static String top2GFileName = "TOP-2G";

        static String topTDFileName = "TOP-TD";

        static String topWLANFileName = "TOP-WLAN";

        static String topLTEFileName = "TOP-LTE";

        static String topDevice2GFileName = "TOP-DEVICE-2G";

        static String topDeviceTDFileName = "TOP-DEVICE-TD";

        static String topDeviceWLANFileName = "TOP-DEVICE-WLAN";

        static String topDeviceLTEFileName = "TOP-DEVICE-LTE";

        static String apkFileName = "NetTest.apk";

        static String dbFileName = "cells.csv";

        /**
         * top10 2G城市数据
         */
        static String topCity2GFileName = "TOP-CITYS-2G";
        /**
         * top10 TD城市数据
         */
        static String topCityTDFileName = "TOP-CITYS-TD";

        public static String serverListFileName = "SERVERLIST";

        /**
         * 测试结果上传到全国服务器文件路径（这个目录下面所有文件）。
         */
//        static String logsaveaddress = "/LOG/JT/";

        /**
         * 测试结果上传到福建服务器文件路径（这个目录下面所有文件）。
         */
        static String logsaveaddressfj = "/LOG/FJ/";

        static String top2GFileNameFJ = "TOP-2G";

        static String topTDFileNameFJ = "TOP-TD";
    }

    interface ComFtpFjConfig {
        String hostFJ = "testspeed.3322.org";

        String userDownloadFJ = "phonedown";

        String passDownloadFJ = "nettest!@#D";

        String userUploadFJ = "phoneup";

        String passUploadFJ = "nettest&%#U";
    }

    interface ComFtp500Config {
        String hostname500 = "北京";

        String host500 = "218.205.192.16";

        String hostport500 = "21";

        String userDownload500 = "ydsjy";

        String passDownload500 = "`12qweasd";

        String downDictory500 = "";
    }

    interface ComFtpConfig {
        String host = "221.176.65.10";

        String hostport = "21";

        String userDownload = "tsrconfiguser@172.16.64.180";

        String passDownload = "tsrconfigpwd123#@!";

        String userUpload = "tsrftpuser@172.16.64.180";

        String passUpload = "tsrftppwd123#@!";
    }

    /**
     * 福建文件下载的文件夹.
     */
    String FJ_FLOADER = "/FJ/";

    /**
     * 所有网络测速数据ftp文件名。
     */
    String[] ALL_PRI_Files = new String[] {
            FtpConstant.FtpFileNames.score2GFileName, FtpConstant.FtpFileNames.scoreTDFileName,//全国数据
//            FtpConstant.FtpFileNames.top2GFileName, FtpConstant.FtpFileNames.topTDFileName,
            FtpConstant.FtpFileNames.topCity2GFileName, FtpConstant.FtpFileNames.topCityTDFileName//这个top10城市的
//            FtpConstant.FtpFileNames.topDevice2GFileName,
//            FtpConstant.FtpFileNames.topDeviceTDFileName

    };
    
    /**
     * 福建的网络测速数据ftp文件名。
     */
    String[] ALL_FJ_Files = new String[] {
            FtpConstant.FtpFileNames.top2GFileNameFJ,//福建小区排名
            FtpConstant.FtpFileNames.topTDFileNameFJ
    };
}
